import { requestClient } from '#/api/request';

// 获取字典列表
export const getDictList = (params: any) =>
  requestClient.get('/dict/list', { params });

// 新增字典分类
export const dictSave = (params: any) =>
  requestClient.post('/dict/add', params);

// 编辑字典分类
export const dictEdit = (params: any) =>
  requestClient.post('/dict/update', params);

// dictId获取字典详情
export const dictdataPage = (params: any) =>
  requestClient.get('/dictdata/page', { params });

// 新增字典详情
export const dictdataSave = (params: any) =>
  requestClient.post('/dictdata/add', params);

// 编辑字典详情
export const dictdataEdit = (params: any) =>
  requestClient.post('/dictdata/update', params);

// 删除字典详情
export const dictdataRemove = (params: any) =>
  requestClient.post('/dictdata/remove', params);
